package com.tutu.product.checks;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Program: b2c-cloud-store
 * @Description: 根据商品类别id获取商品数据的参数检验
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-19 20:08
 **/
@Data
@ApiModel("商品查询的参数检验实体类")
public class GetProductByCategoryParam {

    @ApiModelProperty("商品类别集合")
    private List<Integer> categoryId;

    @ApiModelProperty("当前页码")
    @NotNull(message = "当前页不可为空")
    private Integer currentPage;

    @ApiModelProperty("每页显示数据数量")
    @NotNull(message = "每页显示数不可为空")
    private Integer pageSize;

    @ApiModelProperty("搜索内容")
    private String search;
}
